package org.ajc.base.query;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {

    private String key;       //
    private Integer pageSize;     //页的条数
    private Integer currentPage;  //当前页数

    //获取每页的跳数
    public int getStart(){
        return (this.currentPage-1)*pageSize;
    }
}
